package com.fowo.api.syncAmazon.core.model;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;

import java.util.List;

/**
 * @fileName: RequestConfigurationModel
 * @Description: 代码目的，作用，如何工作
 * @Author: yyf
 * @Date: 2024/3/12 0012 14:03
 */
@Data
public class RequestConfigurationModel {
   private String adProduct;
   private List<String> groupBy;
   private List<String> columns;
   private String reportTypeId;
   private String timeUnit;
   private String format;

   public String toJson() throws JsonProcessingException {
       ObjectMapper mapper = new ObjectMapper();
       return mapper.writeValueAsString(this);
   }
}
